//批量操作的checkbox全选功能
function mulity_delete_button(form){


    form.on('checkbox(item_checkbox)', function(data){
        let checkedSum = 0;
        $("input[name='nid[]']").each(function(){
            if($(this).prop("checked")){
                checkedSum ++;
            }
        });

        if(checkedSum > 0){
            $("#shanchu").removeClass("layui-btn-disabled");
            $("#shanchu").removeAttr("disabled")
        }else{
            $("#shanchu").addClass("layui-btn-disabled");
            $("#shanchu").attr("disabled","disabled");
        }

    });



}
